Linking CC Particle World to a 3D Null in After Effects
Here’s a quick tutorial to help you make the most of AE’s built-in particle system. CC Particle World works in 3D space, but its coordinate system is different the rest of After Effects. Use the expressions below to solve that problem by adding them to the Producer settings.
Expressions:
Position X:
x=thisComp.layer(“Null 1”).transform.position[0]-thisComp.width/2;
x/thisComp.width;
Position Y:
y=thisComp.layer(“Null 1”).transform.position[1]-thisComp.height/2;
y/thisComp.width;
Position Z:
z=thisComp.layer(“Null 1”).transform.position[2];
z/thisComp.width;
In After Effects CC 2024, it doesn’t work… Why?
Are you sure it doesn’t work? It’s still working for me. I’ve tried a couple of variations and it is still working. What’s the error you’re getting?
error at line 1…. SyntaxError: Invalid or unexpected token, an expression was disablet as a result of an error.
What should I enable in the preferences?